﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using CoyoEden.Web.Data;
using CoyoEden;
using CoyoEden.Models;
using CoyoEden.Web.Controls;

public partial class Pages_Votes : PortalBasePage
{
	#region properties
	public string InitPagerStr { get; set; }
	public string VoteListViewPath { get; set; }
	#endregion
	protected void Page_Load(object sender, EventArgs e)
	{
		if (!Page.IsPostBack && !Page.IsCallback)
		{
			//Init Pager
			InitPagerString();
			//Add js
			Utils.AddJavaScriptInclude(Utils.RelativeWebRoot + "Assets/js/mess/SimplePager.js", Page, true);
			Utils.AddJavaScriptInclude(Utils.RelativeWebRoot + "assets/js/mess/VoteList.js", Page, true);

			VoteListViewPath = ViewBase.GetViewPath(Request, "VoteListView");
		}
		Page.Title =PortalSettings.Instance.Name+"-投票区";
	}
	private void InitPagerString()
	{
		SimplePager pager = new SimplePager();
		pager.RowPerPage = 15;
		pager.CurrentPage = 1;
		pager.Tip = "";
		pager.RowTotal = 0;
		pager.PageTotal = 0;

		InitPagerStr = Utils.ToStr<SimplePager>(pager);
	}
}
